/**
 * 
 */
package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.yidu.bean.TbMenu;
import com.yidu.bean.TbMenuType;
import com.yidu.bean.TbShop;
import com.yidu.dao.TbMenuTypeMapper;
import com.yidu.dao.TbShopMapper;
import com.yidu.message.Page;
import com.yidu.service.TbMenuTypeService;

/**
 * 
 * @author liutao
 * @data 2018年7月16日
 * @version 1.0
 */
@Service
public class TbMenuTypeServiceImpl implements TbMenuTypeService{

	Logger logger = Logger.getLogger(TbMemberImpl.class);

	@Resource
	private TbMenuTypeMapper TbMenuTypeDao ;

	@Override
	public int delete(String mtId) {
		return TbMenuTypeDao.deleteByPrimaryKey(mtId);
	}

	@Override
	public int save(TbMenuType mt) {
		return TbMenuTypeDao.insert(mt);
	}

	@Override
	public int update(TbMenuType mt) {
		return TbMenuTypeDao.updateByPrimaryKey(mt);
	}

	@Override
	public List<TbMenuType> findById(String ShopId) {
		System.out.println("进来到店面的service");
		List<TbMenuType> list = (List<TbMenuType>) TbMenuTypeDao.findById(ShopId);
		return list;
	}

	@Override
	public TbMenuType findByIds(String memId) {
		return TbMenuTypeDao.selectByPrimaryKey(memId);
	}

	@Override
	public List<TbMenuType> findAllPage(Map<String, String> map) {
		// TODO Auto-generated method stub
		return TbMenuTypeDao.findAllPage(map);
	}

	@Override
	public int findTotalRows(TbMenuType me) {
		// TODO Auto-generated method stub
		return TbMenuTypeDao.findTotalRows(me);
	}

	@Override
	public List<TbMenuType> findAll() {
		return TbMenuTypeDao.findAlls();
	}

	@Override
	public List<TbMenuType> findVague(Page page, TbMenuType mt) {
		// TODO Auto-generated method stub
		return null;
	}

}
